package com.dianban.service.impl;


import com.dianban.dao.UserCommissionLogDao;
import com.dianban.entity.UserCommissionLog;
import com.dianban.service.UserCommissionLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * 用户业务实现层
 */
@Service
@Transactional(readOnly = true)
public class UserCommissionLogServiceImpl implements UserCommissionLogService {

    @Autowired
    private UserCommissionLogDao userCommissionLogDao;

    @Override
    @Transactional(readOnly = false)
    public int insert(UserCommissionLog userCommissionLog) {
        userCommissionLog.setCreatetime(System.currentTimeMillis() / 1000);
        return userCommissionLogDao.insert(userCommissionLog);
    }


}
